ifneq ($(KERNELRELEASE),)

obj-m  :=  kernel.o
 
else
	KERNELSRC :=/lib/modules/$(shell uname -r)/build
	PWD :=$(shell pwd)
	
all:  
	make -C $(KERNELSRC) M=$(PWD) modules
	gcc -o user user.c
clean:
	make -C $(KERNELSRC) M=$(PWD) clean
	rm -rf *.o user
	
endif
